home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / mf-db.zip / CSAMPLE\CONVERT\CONVTEST.MAK < prev    next >
Text File  |  1993-09-18  |  1KB  |  89 lines

  1. ##### Module Macros ####
  2. NAME    = CONVTEST
  3. SRCS    = $(NAME).c
  4. OBJS    =
  5.  
  6. ##### C7 #####
  7. C7     = 1
  8.  
  9. ##### Library Macros #####
  10. !if $(C7)
  11. LIBS    = libw slibcew
  12. !else
  13. LIBS    = libw slibcew commdlg
  14. !endif
  15. MOD    = -AS
  16.  
  17. ##### Include Macro #####
  18. #INCLS    = $(NAME).h
  19.  
  20. ##### Resource Macro #####
  21. #RCFILES = $(NAME).rc
  22.  
  23. ##### DEBUG Macro Defined #####
  24. DEBUG    = 1
  25.  
  26. ##### Build Option Macros #####
  27. !if $(DEBUG)
  28. DDEF    = -DDEBUG
  29. CLOPT    = -Zid -Od
  30. MOPT    = -Zi
  31. LOPT    = /CO /LI /MAP
  32. !else
  33. DDEF    =
  34. CLOPT    = -Os
  35. LOPT    =
  36. !endif
  37.  
  38. ##### General Macros #####
  39. DEF    =
  40.  
  41. ##### Tool Macros #####
  42. ASM    = masm -Mx $(MOPT) $(DDEF) $(DEF)
  43. CC    = cl -nologo -c -G2sw -Zp -W2 $(MOD) $(CLOPT) $(DDEF) $(DEF)
  44. LINK    = link /NOD /NOE $(LOPT)
  45. RC    = rc $(DDEF) $(DEF)
  46. HC    = hc
  47.  
  48. ##### Inference Rules #####
  49. .c.obj:
  50.     $(CC) $*.c
  51.  
  52. .asm.obj:
  53.     $(ASM) $*.asm;
  54.  
  55. .rc.res:
  56.     $(RC) -r $*.rc
  57.  
  58. ##### Main (default) Target #####
  59. goal: $(NAME).exe
  60.  
  61. ##### Dependents For Goal and Command Line #####
  62. $(NAME).exe: $(SRCS:.c=.obj) $(NAME).def $(NAME).res
  63.     $(LINK) @<<
  64.     $(SRCS:.c=.obj) $(OBJS),
  65.     $(NAME).exe,
  66.     $(NAME).map,
  67.     $(LIBS),
  68.     $(NAME).def
  69. <<
  70.     $(RC) -T $(NAME).res
  71. !if $(DEBUG)
  72. !if !$(C7)
  73.     cvpack -p $(NAME).exe
  74. !endif
  75.     mapsym $(NAME).map
  76. !endif
  77.  
  78. ##### Dependents #####
  79. $(SRCS:.c=.obj):  $(INCLS)
  80. $(NAME).res: $(RCFILES)
  81.  
  82. ##### Clean Directory #####
  83. clean:
  84.     -del *.obj
  85.     -del *.res
  86.     -del *.exe
  87.     -del *.sym
  88.     -del *.map
  89.